<?php

// +----------------------------------------------------------------------
// | 订单业务设置
// +----------------------------------------------------------------------


// 订单业务类型
const TRADE_CASH = 'cash';
const TRADE_BALANCE_RECHARGE = 'balanceRecharge';
const TRADE_CONSULTING_SERVER = 'consultingServer';
const TRADE_REWARD = 'reward';
const TRADE_RED_PACKET = 'redPacket';
const TRADE_LAS_CASE = 'lawCase';
const TRADE_LAWSUIT = 'lawsuit';
const TRADE_LANDING = 'landing';
const TRADE_TOKEN_RECHARGE = 'tokenRecharge';
const TRADE_SOURCE = 'source';
const TRADE_AXB = 'axb';

// 线下交易
const TRADE_OFFLINE_CARD_RECHARGE = 'offlineCardRecharge';
const TRADE_OFFLINE_COIN_RECHARGE = 'offlineCoinRecharge';
const TRADE_OFFLINE_MARGIN_RECHARGE = 'offlineMarginRecharge';

return [

    // 订单业务类型
    'trades' => [
        TRADE_CONSULTING_SERVER => [
            'className' => \app\index\service\TradeConsultingServerService::class,
            'name' => '咨询服务',
            'paymethods' => [
                PAYMENT_WXPAY, PAYMENT_TTPAY, PAYMENT_ACCOUNT
            ],
        ],
        TRADE_REWARD => [
            'className' => \app\index\service\TradeRewardService::class,
            'name' => '悬赏',
            'paymethods' => [
                PAYMENT_WXPAY, PAYMENT_TTPAY, PAYMENT_ACCOUNT
            ],
        ],
        TRADE_RED_PACKET => [
            'className' => \app\index\service\TradeRedPacketService::class,
            'name' => '红包',
            'paymethods' => [
                PAYMENT_WXPAY, PAYMENT_TTPAY, PAYMENT_ACCOUNT
            ],
        ],
        TRADE_LAS_CASE => [
            'className' => \app\index\service\TradeLawCaseService::class,
            'name' => '案源',
            'paymethods' => [
                PAYMENT_WXPAY, PAYMENT_TTPAY, PAYMENT_ACCOUNT
            ],
        ],
        TRADE_LAWSUIT => [
            'className' => \app\index\service\TradeLawsuitService::class,
            'name' => '打官司',
            'paymethods' => [
                PAYMENT_WXPAY, PAYMENT_TTPAY, PAYMENT_ACCOUNT
            ],
        ],
        TRADE_LANDING => [
            'className' => \app\index\service\TradeLandingService::class,
            'name' => '网页咨询',
            'paymethods' => [
                PAYMENT_WXPAY, PAYMENT_TTPAY, PAYMENT_ACCOUNT
            ],
        ],
        TRADE_CASH => [
            'className' => \app\index\service\TradeCashService::class,
            'name' => '余额提现',
            'paymethods' => [
                PAYMENT_ACCOUNT
            ],
        ],
        TRADE_BALANCE_RECHARGE => [
            'className' => \app\index\service\TradeBalanceRechargeService::class,
            'name' => '余额充值',
            'paymethods' => [
                PAYMENT_WXPAY, PAYMENT_TTPAY
            ],
        ],
        TRADE_TOKEN_RECHARGE => [
            'className' => \app\index\service\TradeTokenRechargeService::class,
            'name' => '获客卡&通信币充值',
            'paymethods' => [
                PAYMENT_WXPAY, PAYMENT_TTPAY, PAYMENT_ACCOUNT
            ],
        ],
        TRADE_SOURCE => [
            'className' => \app\index\service\TradeSourceService::class,
            'name' => '案源',
            'paymethods' => [
                PAYMENT_CARD
            ],
        ],
        TRADE_AXB => [
            'className' => \app\index\service\TradeAxbCommunicationService::class,
            'name' => '通话',
            'paymethods' => [
                PAYMENT_COIN
            ],
        ],
    ],

];
